package com.sohu.peak.gallery.dao;

import java.util.List;

import com.sohu.peak.gallery.domain.Pic;
import com.sohu.peak.util.Pagination;

public interface PicDAO {
	
	public Pic save(Pic pic);
	
	public List<Pic> getPicListByPicGroupId(Long picGroupId,Pagination pagination,int status);
	
	public List<Pic> getPicListByPicGroupId(Long picGroupId,Pagination pagination,int status,int orderType);
	
	public List<Pic> getPicListByCateId(Long cateId,Pagination pagination,int status);
	
	public List<Pic> getPicListByTagId(Long tagId,Pagination pagination,int status);
	
	public Pic getPicById(Long pid);
	
	public Long update(Pic pic);
	
	public Long del(Pic pic);
	
	public int getPicCountByPicGroupId(Long picGroupId,int status);
	public int getPicCountByPicGroupId(Long picGroupId);
	public Pic getFirstPicByPicGroupId(Long picGroupId);
	public void delByPicIds(List picIds);

	 
}
